package com.ai.wx.entity;

// Generated 2015-5-18 15:07:11 by Hibernate Tools 4.0.0

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * AgentUser generated by hbm2java
 */
@Entity
@Table(name = "agent_user", catalog = "wx")
public class AgentUser implements java.io.Serializable {

	private Integer id;
	private String agentUser;
	private String openid;
	private String password;
	private String userName;
	private Byte agentState;
	private String idCard;
	private String idCardPicF;
	private String idCardPicB;
	private String accountName;
	private String bankCard;
	private String bankName;
	private String email;
	private String phone;
	private String reason;
	private Integer state;
	private Date crtDate;
	private Date modDate;
	private String crtUid;
	private String modUid;

	public AgentUser() {
	}

	 

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "Id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "agent_user", length = 50)
	public String getAgentUser() {
		return this.agentUser;
	}

	public void setAgentUser(String agentUser) {
		this.agentUser = agentUser;
	}
	@Column(name = "reason")
	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	@Column(name = "openid")
	public String getOpenid() {
		return this.openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	@Column(name = "password")
	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name = "user_name")
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "agent_state")
	public Byte getAgentState() {
		return this.agentState;
	}

	public void setAgentState(Byte agentState) {
		this.agentState = agentState;
	}

	@Column(name = "id_card", length = 100)
	public String getIdCard() {
		return this.idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	@Column(name = "id_card_pic_f", length = 1000)
	public String getIdCardPicF() {
		return this.idCardPicF;
	}

	public void setIdCardPicF(String idCardPicF) {
		this.idCardPicF = idCardPicF;
	}

	@Column(name = "id_card_pic_b", length = 1000)
	public String getIdCardPicB() {
		return this.idCardPicB;
	}

	public void setIdCardPicB(String idCardPicB) {
		this.idCardPicB = idCardPicB;
	}

	@Column(name = "account_name")
	public String getAccountName() {
		return this.accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	@Column(name = "bank_card", length = 30)
	public String getBankCard() {
		return this.bankCard;
	}

	public void setBankCard(String bankCard) {
		this.bankCard = bankCard;
	}

	@Column(name = "bank_name")
	public String getBankName() {
		return this.bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	@Column(name = "email")
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "phone")
	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "state")
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "crt_date", length = 0)
	public Date getCrtDate() {
		return this.crtDate;
	}

	public void setCrtDate(Date crtDate) {
		this.crtDate = crtDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "mod_date", length = 0)
	public Date getModDate() {
		return this.modDate;
	}

	public void setModDate(Date modDate) {
		this.modDate = modDate;
	}

	@Column(name = "crt_uid")
	public String getCrtUid() {
		return this.crtUid;
	}

	public void setCrtUid(String crtUid) {
		this.crtUid = crtUid;
	}

	@Column(name = "mod_uid")
	public String getModUid() {
		return this.modUid;
	}

	public void setModUid(String modUid) {
		this.modUid = modUid;
	}

}
